package com.df.product.controller;

import com.df.product.service.AttrService;
import com.df.utils.R;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class AttrController {

    @Resource
    AttrService attrService;

    @ResponseBody
    @GetMapping("/login")
    public R login(){
        return attrService.queryById();
    }

}
